package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.DtsCategory;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 类目表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsCategoryMapper extends BaseMapper<DtsCategory> {

    List<Map> selectLevel1();

    int queryCategoryName(String name);

    List<DtsCategory> selectByPid(Integer pid);

    List<DtsCategory> selectByID(Integer id);
}
